const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false // 关闭eslint校验
})

module.exports = {
  productionSourceMap:false,
  devServer:{
    proxy:{
      "/api":{
        target: "http://localhost:8888",
        changeOrigin:true,
        pathRewrite:{
          "^/api":""
        }
      }
    },
    disableHostCheck:true
  },
  chainWebpack: config => {
    config.resolve.alias.set("@", resolve("src"));
  }
};

const path = require("path")
function resolve(dir){
  return path.join(__dirname,dir);
}
